package models

//User 用户信息表
type User struct {
	ID      int64  `json:"id" xorm:"'id' pk autoincr BIGINT(20)"`
	Name    string `json:"name" xorm:"'name' notnull unique  VARCHAR(64)"`
	Gender  string `json:"gender" xorm:"'gender' VARCHAR(2)"`
	Age     int    `json:"age" xorm:"'age' INT(3)"`
	Address string `json:"address" xorm:"'address' VARCHAR(256)"`
	Birthday Date  `json:"birthday" xorm:"'birthday' TIMESTAMP"`
	Passwd  string `json:"passwd" xorm:"'passwd' not null VARCHAR(200)"`
	Created Time   `json:"created" xorm:"'created' TIMESTAMP created"`
	Updated Time   `json:"updated" xorm:"'updated' TIMESTAMP updated"`
	Version int64  `json:"version" xorm:"'version' BIGINT(20) version"`
}

